package com.crocodile.game17.mapper;

import com.crocodile.game17.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {

    /**
     * 查找用户
     * @param username
     * @return
     */
    @Select("select * from user where username = #{username};")
    User getByUsername(String username);

    @Select("select * from user where id = #{id};")
    User getById(Long id);
}
